package com.lookoutthebush.companyindex.services;

import com.lookoutthebush.companyindex.domain.NewsDO;
import com.lookoutthebush.companyindex.util.PageHelper;

import java.util.List;

public interface INewsService {
    Long createNews(NewsDO newsDO);

    boolean release(Long id);

    PageHelper<NewsDO> getReleaseListByPage(List<Long> typeIds, PageHelper<NewsDO> pageHelper);

    PageHelper<NewsDO> getNoReleaseListByPage(List<Long> typeIds, PageHelper<NewsDO> page);

    boolean deleteById(Long id);
}
